package network;

public interface NetConnectResponse {

    public static final int CONNECT_FAILED_CLIENT_ERROR = 201;
    public static final int CONNECT_FAILED_NETWORK_ERROR = 202;
    public static final int CONNECT_FAILED_NO_RESPONSE = 203;
    public static final int CONNECT_FAILED_NO_STATUS_CODE = 204;
    public static final int CONNECT_FAILED_WRONG_STATUS_CODE = 205;
    public static final int CONNECT_FAILED_GET_CONTENT_ERROR = 206;
    public static final int CONNECT_FAILED_CONNECTION_DISCONNECTION = 207;
    public static final int CONNECT_SUCCESS = 300;

    /**
     * response for NetConnectClient request
     *
     * @param connect
     * @param connStatus response status
     * @param httpCode   网络状态码出错时，返回的值
     * @param in         response data
     */
    public void response(NetConnectClient connect, int connStatus, int httpCode, String in);
}